using Crossborder.Common.Utility.HttpHelper;
using Crossborder.Core.Core;
using Crossborder.Core.Dto;

namespace Crossborder.IService
{
    public interface IUserService : ITransient
    {
        /// <summary>
        /// 查询用户信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task<HttpResponsion> GetUser(string userId);

        /// <summary>
        /// 创建用户
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<HttpResponsion> CreateUser(UserInputDto dto);

        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<HttpResponsion> Login(LoginInputDto dto);
    }
}